package com.lyz.dataStructure.dome;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 10:30
 * @Description:
 **/

import java.io.*;

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/7/15 10:30
 *@Description:
 **/
public class OutputStreamDemo {
    public static void main(String[] args) throws IOException {

       String s ="hello";
       OutputStream out =new FileOutputStream("b.txt");
       for(int i =0;i<s.length();i++){
           out.write(s.charAt(i));
       }
       out.flush();
       out.close();
    }
}
